package zb.lambda;

import java.util.List;

/**
 * @author wzby
 * @Date: 2022/8/5 10:16
 */
public class Lam2 {
    public static void main(String[] args) {
        List<String> ls = List.of("java","php","css","html","java2","javase");
        ls.forEach(System.out::println);
        ls.forEach(e->System.out.println(e));
        System.out.println("==".repeat(20));
        ls.forEach(e->{
            if (e.contains("java")){
                System.out.println(e);
            }
        });
        System.out.println("==".repeat(20));
        ls.stream().filter(e->e.contains("java")).forEach(System.out::println);
    }

}
